package com.mankiw.code_generator.entity;

import com.mankiw.code_generator.enums.DataType;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

@Table(name = "t_field")
@Entity
public class FieldModel extends EntityBase{

    private String fieldName;
    private DataType dataType;
    private int dataLength;

    public FieldModel() {
    }

    public FieldModel(String fieldName, DataType dataType, int dataLength) {
        this.fieldName = fieldName;
        this.dataType = dataType;
        this.dataLength = dataLength;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public DataType getDataType() {
        return dataType;
    }

    public void setDataType(DataType dataType) {
        this.dataType = dataType;
    }

    public int getDataLength() {
        return dataLength;
    }

    public void setDataLength(int dataLength) {
        this.dataLength = dataLength;
    }
}
